package com.ruoyi.wm.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.wm.mapper.WmMedicineOutstorageListMapper;
import com.ruoyi.wm.domain.WmMedicineOutstorageList;
import com.ruoyi.wm.service.IWmMedicineOutstorageListService;
import com.ruoyi.common.core.text.Convert;

/**
 * 药品出库记录Service业务层处理
 * 
 * @author hpf
 * @date 2021-11-25
 */
@Service
public class WmMedicineOutstorageListServiceImpl implements IWmMedicineOutstorageListService 
{
    @Autowired
    private WmMedicineOutstorageListMapper wmMedicineOutstorageListMapper;

    /**
     * 查询药品出库记录
     * 
     * @param id 药品出库记录ID
     * @return 药品出库记录
     */
    @Override
    public WmMedicineOutstorageList selectWmMedicineOutstorageListById(Long id)
    {
        return wmMedicineOutstorageListMapper.selectWmMedicineOutstorageListById(id);
    }

    /**
     * 查询药品出库记录列表
     * 
     * @param wmMedicineOutstorageList 药品出库记录
     * @return 药品出库记录
     */
    @Override
    public List<WmMedicineOutstorageList> selectWmMedicineOutstorageListList(WmMedicineOutstorageList wmMedicineOutstorageList)
    {
        return wmMedicineOutstorageListMapper.selectWmMedicineOutstorageListList(wmMedicineOutstorageList);
    }

    /**
     * 新增药品出库记录
     * 
     * @param wmMedicineOutstorageList 药品出库记录
     * @return 结果
     */
    @Override
    public int insertWmMedicineOutstorageList(WmMedicineOutstorageList wmMedicineOutstorageList)
    {
        return wmMedicineOutstorageListMapper.insertWmMedicineOutstorageList(wmMedicineOutstorageList);
    }

    /**
     * 修改药品出库记录
     * 
     * @param wmMedicineOutstorageList 药品出库记录
     * @return 结果
     */
    @Override
    public int updateWmMedicineOutstorageList(WmMedicineOutstorageList wmMedicineOutstorageList)
    {
        return wmMedicineOutstorageListMapper.updateWmMedicineOutstorageList(wmMedicineOutstorageList);
    }

    /**
     * 删除药品出库记录对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteWmMedicineOutstorageListByIds(String ids)
    {
        return wmMedicineOutstorageListMapper.deleteWmMedicineOutstorageListByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除药品出库记录信息
     * 
     * @param id 药品出库记录ID
     * @return 结果
     */
    @Override
    public int deleteWmMedicineOutstorageListById(Long id)
    {
        return wmMedicineOutstorageListMapper.deleteWmMedicineOutstorageListById(id);
    }
}
